package infaraway.Decorator.Decorator;

import infaraway.Decorator.Beverage;

/**
 * Created by :Infaraway
 * DATE : 2017/4/26
 * Time : 22:22
 * Funtion :
 */
public class Module2 extends DecotatorModules {
    Beverage beverage;

    public Module2(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + "  add module2 ";
    }

    @Override
    public double cost() {
        return 1.50 + beverage.cost();
    }
}
